﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt.TenderOffer
{
    /// <summary>
    /// 招标项目发售记录
    /// </summary>
    public class TenderOffer : Entity
    {
        #region 标书发售记录基本信息
        /// <summary>
        /// 销售类型：
        /// 1、按总项
        /// 2、按标段
        /// </summary>
        public virtual int TypeFlag { get; set; }


        /// <summary>
        /// 标题
        /// </summary>
        public virtual string TenderOfferTitle { get; set; }

        /// <summary>
        /// 操作员_业务部门
        /// </summary>
        public virtual ywxt.t_sys_user OpUser { get; set; }

        /// <summary>
        /// 单据录入日期
        /// </summary>
        public virtual DateTime OfferDate { get; set; }

        /// <summary>
        /// 项目销售订单金额---小计
        /// </summary>
        public virtual decimal OfferValue { get; set; }

        /// <summary>
        /// 项目销售说明
        /// </summary>
        public virtual string OfferRemark { get; set; }

        /// <summary>
        /// 其他金额
        /// </summary>
        public virtual decimal OtherValue { get; set; }

        /// <summary>
        /// 其他金额说明
        /// </summary>
        public virtual string OtherRemark { get; set; }

        /// <summary>
        /// 项目发售明细
        /// </summary>
        public virtual IList<TenderOfferDetail> Details { get; set; }
        #endregion
        
        #region 财务收款信息
        /// <summary>
        /// 实际销售金额
        /// </summary>
        public virtual decimal PayValue { get; set; }

        /// <summary>
        /// 支付日期
        /// </summary>
        public virtual DateTime PayDate { get; set; }

        /// <summary>
        /// 支付标志：
        /// 0：未支付；
        /// 99：已支付；
        /// </summary>
        public virtual int PayFlag { get; set; }

        /// <summary>
        /// 发票号码
        /// </summary>
        public virtual string PayFpCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public virtual string PayRemark { get; set; }

        /// <summary>
        /// 操作员_财务部门
        /// </summary>
        public virtual ywxt.t_sys_user PayUser { get; set; }

        #endregion

        #region 投标人及联系人信息
        /// <summary>
        /// 投标人
        /// </summary>
        public virtual Bidder.Bidder Bidder { get; set; }

        /// <summary>
        /// 联系人姓名
        /// </summary>
        public virtual string LinkerName { get; set; }

        /// <summary>
        /// 联系人电话
        /// </summary>
        public virtual string LinkerPhone { get; set; }

        /// <summary>
        /// 联系人电子邮件
        /// </summary>
        public virtual string LinkerEmail { get; set; }
        #endregion

        public TenderOffer()
        {
            Details = new List<TenderOfferDetail>();
        }
    }
}
